package entity;

import enums.ExceptionEnum;
import lombok.Getter;

/**
 * 异常结果实体
 */
@Getter
public class ExceptionResult {
    private boolean flag;//是否成功
    private int code;//响应码
    private String message;//响应信息

    public ExceptionResult(ExceptionEnum em) {
        this.flag=em.isFlag();
        this.code =em.getCode();
        this.message=em.getMessage();
    }
}
